package com.zecan.blog.entity;

import lombok.*;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @ClassName Article
 * @Description
 * @date 2022/10/28 17:10
 * @Version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ToString
@Document(indexName = "blog-article")
public class Article implements Serializable {

    // 文章id
    private Integer articleId;

    //文章用戶id
    private Long articleAuthorId;

    //文章标题
    private String articleTitle;

    // 文章展示片段
    private String articleDescription;

    //文章创建时间
    private String articleCreateTime;

    // 文章作者用户名
    private String  articleAuthorName;

    // 文章作者头像
    private String articleAuthorAvatar;

    //文章浏览量
    private Integer articleViews;

    //文章内容
    private String articleContent;

    // 文章点赞数量
    private Integer articleLikeCount;

    //文章分类
    private String articleClassify;

    //文章标签
    private String articleTag;

    //文章状态 0 正常 1 删除
    private Integer articleStatus;

    //文章图片
    private String articleImage;


}
